FROM node:14

# Create app directory
WORKDIR /usr/src/app

RUN git clone https://gitee.com/daiXingPan/scada.git
WORKDIR /usr/src/app/FUXA

# Install server
WORKDIR /usr/src/app/FUXA/server
RUN npm install
RUN npm audit fix
RUN npm audit fix --force

WORKDIR /usr/src/app/FUXA/server
EXPOSE 1881
CMD [ "npm", "start" ]
